package com.javasm.sys.dao;

import com.javasm.sys.SysDepart;
import com.javasm.sys.SysPos;
import com.javasm.sys.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

/**
 * @Author: WangZhuang
 * @ClassName: UserDao
 * @Description:
 * @Date: 2022/9/10 11:20
 * Version: 0.1
 * Since: JDK11
 */
public interface UserDao {

    SysUser getUserByAccount(SysUser user);

    List<SysDepart> getAllDept();

    List<SysUser> getUsers(SysUser user);


    //    根据id更新用户信息
    Integer updateUserById(SysUser user);

    List<SysPos> getAllPos();

    Integer addUser(SysUser user);

    SysUser getParms(String userId);

    Integer delUserById(String userId);

    Integer resetPwd(String userId);

    Integer delUserByIds(@Param("ids") List<String> ids);

    SysUser getUserById(String userId);

    List<SysUser> getUsersBydeptidAndpid(@Param("deptId") String deptId,@Param("posId") String posId);

    SysUser getOneByUserAccount(String userAccount);

}
